package com.wuzuqing.android.eightdiagrams.utils;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.InputStream;

/**
 * @CopyRight: 广州仰望星空云科技有限公司
 * @Author : wuzuqing
 * @Email:wuzuqing@xinyu668.com
 * @CreateTime: 23.7.24 5:43 PM
 * @Description: 请写描述
 */
public class JavaInitHelper implements IInitHelper {
    File file = new File(".","app/src/main/assets/");
    @Override
    public InputStream open(String name) {
        try {
            return new FileInputStream(new File(file,name));
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        return null;
    }

    @Override
    public void d(String text) {
        System.out.println(text);
    }
}
